<div class="paging">
    <?php
    echo $this->Paginator->options(array('update' => '#content', 'evalScripts' => false));
    echo $this->Paginator->prev('< ' . __('Anterior'), array(), null, array('class' => 'prev disabled'));
    echo $this->Paginator->numbers(array('separator' => ''));
    echo $this->Paginator->next(__('Siguiente') . ' >', array(), null, array('class' => 'next disabled'));
    ?>
</div>
<table id="tabla" class="tabla">
    <thead>
        <tr>
            <th><?php echo $this->Paginator->sort('Id', 'Call.id'); ?></th>
            <th><?php echo $this->Paginator->sort('Nombre', 'Call.nombre'); ?></th>
            <th><?php echo $this->Paginator->sort('Valor smmv', 'Call.valor_smmv'); ?></th>
            <th><?php echo $this->Paginator->sort('Valor smmv para predios', 'Call.smmv_predios'); ?></th>
            <th><?php echo $this->Paginator->sort('Valor smmv por proyecto', 'Call.smmv_proyecto'); ?></th>
            <th><?php echo $this->Paginator->sort('Smmv notarial', 'Call.smmv_notarial'); ?></th>
            <th colspan="2"></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($Calls as $Call): ?>
            <tr>
                <td><?php echo $Call['Call']['id']; ?></td>
                <td><?php echo $Call['Call']['nombre']; ?></td>
                <td><?php echo $Call['Call']['valor_smmv']; ?></td>
                <td><?php echo $Call['Call']['smmv_predios']; ?></td>
                <td><?php echo $Call['Call']['smmv_proyecto']; ?></td>
                <td><?php echo $Call['Call']['smmv_notarial']; ?></td>
                <td><?php echo $ajax->link('Editar', array('controller' => 'Calls', 'action' => 'edit', $Call["Call"]["id"]), array('update' => 'content', 'indicator' => 'loading', 'class' => 'actions')); ?></td>
                <td><?php echo $ajax->link('Requisitos_mínimos', array('controller' => 'requirements', 'action' => 'index', $Call["Call"]["id"]), array('update' => 'content', 'class' => 'actions')); ?></td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php echo $this->Js->writeBuffer(); ?>
<br><br>
<?php echo $ajax->link('ADICIONAR CONVOCATORIA', array('controller' => 'Calls', 'action' => 'add'), array('update' => 'content', 'indicator' => 'loading', 'class' => 'actions')); ?>